﻿using Microsoft.EntityFrameworkCore;

namespace StudentMapper;

/// <summary>
/// 学生实体类
/// </summary>
public class StudentEntity
{
    public int? Id { get; set; }
    public string Name { get; set; } = "";
    public int Source { get; set; } = 0;
    public DateTime? CreateTime { get; set; }
}

public class StudentMapper: DbContext
{
    public StudentMapper(DbContextOptions<StudentMapper> op): base(op)
    {

    }

    public DbSet<StudentEntity> Students => Set<StudentEntity>();
}
